package cn.itrip.auth.service;

import cn.itrip.beans.pojo.ItripUser;

import java.util.Map;

/** 
* @Description: User接口
* @Author: XiaoKun
* @Date: 2019-01-26 
*/ 
public interface UserService {
    /**
     * 用户注册
     * @param itripUser
     * @return
     * @throws Exception
     */
    public Integer userRegister(ItripUser itripUser) throws Exception;

    /**
     * 验证用户是否存在
     * @param name
     * @return
     * @throws Exception
     */
    public Integer ckusrUser(Map name) throws Exception;

    /**
     * 判断用户名密码
     * @param userCode
     * @param userPassword
     * @return
     * @throws Exception
     */
    public ItripUser login(String userCode, String userPassword) throws Exception;

    /**
     * 激活用户
     * @param userCode
     * @return
     * @throws Exception
     */
    public Integer userActivate(String userCode) throws Exception;
}
